<template>
</template>

<script>
	export default{
		onLoad(options) {
			let user_id = options.user_id
			console.log(user_id)
			if(user_id){
				this.opminiProg(user_id)
			}
		},
		onUnload() {
			uni.navigateBack({
				delta:1
			})
		},
		methods:{
			opminiProg(user_id){
				uni.showModal({
					content:'即将跳转小程序',
					success(res) {
						if(res.confirm){
							uni.navigateToMiniProgram({
								appId: 'wx66230223cee807f1',// 其他小程序APPID
								path: `/pages/home/index/index?share_uid=${user_id}`,//其他小程序地址
								success: res => {
									// 打开成功
									console.log("打开成功", res);
								},
								fail: err => {
									console.log(err);
								}
							});
						}
					}
				})
			}
		},
		
	}
</script>

<style>
</style>
